<?php
class login_m extends CI_Model{
	
	function cek_login(){
		$this->db->where('nama',$this->input->post('user_id'));
		$this->db->where('password',md5($this->input->post('pass')));
		$hasil = $this->db->get('user');
		
		if ($hasil->num_rows == 1) {
			return TRUE;
		}
	}
}